package com.jinke.api.modules.app.request;

import com.jinke.api.modules.app.enums.PaymentType;
import com.jinke.api.modules.app.enums.UserRechargeStatus;
import com.jinke.api.modules.base.request.BasePageListRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Accessors(chain = true)
public class UserRechargeRequest extends BasePageListRequest {
    @ApiModelProperty("用户ID，前端不用传")
    private Integer userId;

    @ApiModelProperty("用户账号搜索，仅管理用可用")
    private String email;

    @ApiModelProperty("起始日期，yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    @ApiModelProperty("结束日期，yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    @ApiModelProperty("状态")
    private UserRechargeStatus status;

    @ApiModelProperty("支付方式0线下汇款1其他")
    private PaymentType paymentType;

    @ApiModelProperty("ID")
    private List<String> ids;

    @ApiModelProperty("ID")
    private Integer id;
}
